package com.yupi.project.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.apicommon.model.entity.UserInterfaceInfo;

/**
* @author 潮
* @description 针对表【user_interface_info(用户调用接口关系)】的数据库操作Service
* @createDate 2023-05-25 19:51:50
*/
public interface UserInterfaceInfoService extends IService<UserInterfaceInfo> {

    void validUserInterfaceInfo(UserInterfaceInfo userInterfaceInfo, boolean add);

    /**
     *  调用接口次数减一
     * @param interfaceInfoId
     * @param userId
     * @return
     */
    boolean invokeCount(Long interfaceInfoId,Long userId);
}
